package cn.dengta.webapp.user.entity.activity;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import cn.dengta.webapp.user.model.ActStatus;
import cn.dengta.webapp.user.model.Gender;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 情人节奖励发放表
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("act_valentine_reward")
public class ActValentineReward extends TimeBasedEntity {

	/** 发放周期，按天 */
	private String refDate;
	private Long userId;
	private ActStatus status;
	private Gender gender;

	public boolean isUnComplete() {
		return this.status == ActStatus.un_finished;
	}

	public boolean isGet() {
		return this.status == ActStatus.get;
	}

	public static final String USER_ID = "user_id";
	public static final String REF_DATE = "ref_date";

}
